package com.qiuyang.service.show;

import com.github.pagehelper.PageInfo;
import com.qiuyang.pojo.Blog;

import java.util.List;
import java.util.Map;

public interface ShowBlogService {
    //总数
    int countBlog();
    //查询所有不分页
    List<Blog> findAllBlog();
    //查询推荐
    List<Blog> blogRecommed();
    //根据id查询
    Blog showBlog(Long id);
    //添加浏览次数
    void insertViews(Long id);

    PageInfo<Blog> findBlogAndList(int pageNum, int pageSize);

    PageInfo<Blog> findBlogTitle(String title,int pageNum,int pageSize);

}
